# Maintainer: Daniel M. Capella <polyzen@archlinux.org>

pkgname=pcaudiolib
pkgver=1.2
pkgrel=2
pkgdesc='Portable C Audio Library'
url=https://github.com/espeak-ng/pcaudiolib
arch=('loong64' 'x86_64')
license=('GPL3')
depends=('alsa-lib' 'libpulse')
source=("$url/archive/$pkgver/$pkgname-$pkgver.tar.gz")
b2sums=('a16e50fd789a88f10a56323afd2637c13e2383392cc287aad4cd8ef3f1f475c2754dca53e0fd5453b5fc9ee45392a0b9b6d8d7a2d0e88214e6194bbc2ce1e1ff')

prepare() {
  cd $pkgname-$pkgver
  ./autogen.sh
}

build() {
  cd $pkgname-$pkgver
  ./configure --prefix=/usr
  make
}

package() {
  cd $pkgname-$pkgver
  make DESTDIR="$pkgdir" install
}

# vim:set ts=2 sw=2 et:
